#include<stdio.h>
int main()
{
    int a,b,c,x;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b&&b>c){
        x=1;
    }
    if(a>c&&c>b){
        x=2;
    }
    if(b>c&&c>a){
        x=3;
    }
    if(b>a&&a>c){
        x=4;
    }
    if(c>a&&a>b){
        x=5;           
    }
    if(c>b&&b>a){
        x=6;
    }
    switch(x){
        case1:printf("%d->%d->%d",c,b,a);break;
        case2:printf("%d->%d->%d",b,c,a);break;
        case3:printf("%d->%d->%d",a,c,b);break;
        case4:printf("%d->%d->%d",c,a,b);break;
        case5:printf("%d->%d->%d",b,a,c);break;
        case6:printf("%d->%d->%d",a,b,c);break;
    }
    return 0;
} 
